package com.xinke.module.system.model.vo.oauth2;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

@Schema(description = "管理后台 - OAuth2 授权码 Response VO")
@Data
@ExcelIgnoreUnannotated
public class OAuth2CodeRespVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "6352")
    @ExcelProperty("编号")
    private Long codeId;

    @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "8307")
    @ExcelProperty("用户编号")
    private Long userId;

    @Schema(description = "用户类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("用户类型")
    private Integer userType;

    @Schema(description = "授权码", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("授权码")
    private String oauthCode;

    @Schema(description = "客户端编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("客户端编号")
    private String clientNo;

    @Schema(description = "授权范围")
    @ExcelProperty("授权范围")
    private String authScope;

    @Schema(description = "过期时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("过期时间")
    private LocalDateTime expiresTime;

    @Schema(description = "可重定向的 URI 地址")
    @ExcelProperty("可重定向的 URI 地址")
    private String redirectUri;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("状态")
    private String codeState;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}